Optimal. Leaf size=379 \[ -\frac {2 \tan ^{-1}\left (\frac {\sqrt [5]{b}-\sqrt [5]{a} \tan \left (\frac {x}{2}\right )}{\sqrt {a^{2/5}-b^{2/5}}}\right )}{5 a^{4/5} \sqrt {a^{2/5}-b^{2/5}}}-\frac {2 \tan ^{-1}\left (\frac {(-1)^{2/5} \sqrt [5]{b}-\sqrt [5]{a} \tan \left (\frac {x}{2}\right )}{\sqrt {a^{2/5}-(-1)^{4/5} b^{2/5}}}\right )}{5 a^{4/5} \sqrt {a^{2/5}-(-1)^{4/5} b^{2/5}}}-\frac {2 \tan ^{-1}\left (\frac {(-1)^{4/5} \sqrt [5]{b}-\sqrt [5]{a} \tan \left (\frac {x}{2}\right )}{\sqrt {a^{2/5}+(-1)^{3/5} b^{2/5}}}\right )}{5 a^{4/5} \sqrt {a^{2/5}+(-1)^{3/5} b^{2/5}}}+\frac {2 \tan ^{-1}\left (\frac {\sqrt [5]{a} \tan \left (\frac {x}{2}\right )+\sqrt [5]{-1} \sqrt [5]{b}}{\sqrt {a^{2/5}-(-1)^{2/5} b^{2/5}}}\right )}{5 a^{4/5} \sqrt {a^{2/5}-(-1)^{2/5} b^{2/5}}}+\frac {2 \tan ^{-1}\left (\frac {\sqrt [5]{a} \tan \left (\frac {x}{2}\right )+(-1)^{3/5} \sqrt [5]{b}}{\sqrt {a^{2/5}+\sqrt [5]{-1} b^{2/5}}}\right )}{5 a^{4/5} \sqrt {a^{2/5}+\sqrt [5]{-1} b^{2/5}}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.48, antiderivative size = 379, normalized size of antiderivative = 1.00, number of steps used = 17, number of rules used = 4, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {3213, 2660, 618, 204} \[ -\frac {2 \tan ^{-1}\left (\frac {\sqrt [5]{b}-\sqrt [5]{a} \tan \left (\frac {x}{2}\right )}{\sqrt {a^{2/5}-b^{2/5}}}\right )}{5 a^{4/5} \sqrt {a^{2/5}-b^{2/5}}}-\frac {2 \tan ^{-1}\left (\frac {(-1)^{2/5} \sqrt [5]{b}-\sqrt [5]{a} \tan \left (\frac {x}{2}\right )}{\sqrt {a^{2/5}-(-1)^{4/5} b^{2/5}}}\right )}{5 a^{4/5} \sqrt {a^{2/5}-(-1)^{4/5} b^{2/5}}}-\frac {2 \tan ^{-1}\left (\frac {(-1)^{4/5} \sqrt [5]{b}-\sqrt [5]{a} \tan \left (\frac {x}{2}\right )}{\sqrt {a^{2/5}+(-1)^{3/5} b^{2/5}}}\right )}{5 a^{4/5} \sqrt {a^{2/5}+(-1)^{3/5} b^{2/5}}}+\frac {2 \tan ^{-1}\left (\frac {\sqrt [5]{a} \tan \left (\frac {x}{2}\right )+\sqrt [5]{-1} \sqrt [5]{b}}{\sqrt {a^{2/5}-(-1)^{2/5} b^{2/5}}}\right )}{5 a^{4/5} \sqrt {a^{2/5}-(-1)^{2/5} b^{2/5}}}+\frac {2 \tan ^{-1}\left (\frac {\sqrt [5]{a} \tan \left (\frac {x}{2}\right )+(-1)^{3/5} \sqrt [5]{b}}{\sqrt {a^{2/5}+\sqrt [5]{-1} b^{2/5}}}\right )}{5 a^{4/5} \sqrt {a^{2/5}+\sqrt [5]{-1} b^{2/5}}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 2660
Rule 3213
Rubi steps
\begin {align*} \int \frac {1}{a-b \sin ^5(x)} \, dx &=\int \left (\frac {1}{5 a^{4/5} \left (\sqrt [5]{a}-\sqrt [5]{b} \sin (x)\right )}+\frac {1}{5 a^{4/5} \left (\sqrt [5]{a}+\sqrt [5]{-1} \sqrt [5]{b} \sin (x)\right )}+\frac {1}{5 a^{4/5} \left (\sqrt [5]{a}-(-1)^{2/5} \sqrt [5]{b} \sin (x)\right )}+\frac {1}{5 a^{4/5} \left (\sqrt [5]{a}+(-1)^{3/5} \sqrt [5]{b} \sin (x)\right )}+\frac {1}{5 a^{4/5} \left (\sqrt [5]{a}-(-1)^{4/5} \sqrt [5]{b} \sin (x)\right )}\right ) \, dx\\ &=\frac {\int \frac {1}{\sqrt [5]{a}-\sqrt [5]{b} \sin (x)} \, dx}{5 a^{4/5}}+\frac {\int \frac {1}{\sqrt [5]{a}+\sqrt [5]{-1} \sqrt [5]{b} \sin (x)} \, dx}{5 a^{4/5}}+\frac {\int \frac {1}{\sqrt [5]{a}-(-1)^{2/5} \sqrt [5]{b} \sin (x)} \, dx}{5 a^{4/5}}+\frac {\int \frac {1}{\sqrt [5]{a}+(-1)^{3/5} \sqrt [5]{b} \sin (x)} \, dx}{5 a^{4/5}}+\frac {\int \frac {1}{\sqrt [5]{a}-(-1)^{4/5} \sqrt [5]{b} \sin (x)} \, dx}{5 a^{4/5}}\\ &=\frac {2 \operatorname {Subst}\left (\int \frac {1}{\sqrt [5]{a}-2 \sqrt [5]{b} x+\sqrt [5]{a} x^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )}{5 a^{4/5}}+\frac {2 \operatorname {Subst}\left (\int \frac {1}{\sqrt [5]{a}+2 \sqrt [5]{-1} \sqrt [5]{b} x+\sqrt [5]{a} x^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )}{5 a^{4/5}}+\frac {2 \operatorname {Subst}\left (\int \frac {1}{\sqrt [5]{a}-2 (-1)^{2/5} \sqrt [5]{b} x+\sqrt [5]{a} x^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )}{5 a^{4/5}}+\frac {2 \operatorname {Subst}\left (\int \frac {1}{\sqrt [5]{a}+2 (-1)^{3/5} \sqrt [5]{b} x+\sqrt [5]{a} x^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )}{5 a^{4/5}}+\frac {2 \operatorname {Subst}\left (\int \frac {1}{\sqrt [5]{a}-2 (-1)^{4/5} \sqrt [5]{b} x+\sqrt [5]{a} x^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )}{5 a^{4/5}}\\ &=-\frac {4 \operatorname {Subst}\left (\int \frac {1}{-4 \left (a^{2/5}-b^{2/5}\right )-x^2} \, dx,x,-2 \sqrt [5]{b}+2 \sqrt [5]{a} \tan \left (\frac {x}{2}\right )\right )}{5 a^{4/5}}-\frac {4 \operatorname {Subst}\left (\int \frac {1}{-4 \left (a^{2/5}+\sqrt [5]{-1} b^{2/5}\right )-x^2} \, dx,x,2 (-1)^{3/5} \sqrt [5]{b}+2 \sqrt [5]{a} \tan \left (\frac {x}{2}\right )\right )}{5 a^{4/5}}-\frac {4 \operatorname {Subst}\left (\int \frac {1}{-4 \left (a^{2/5}-(-1)^{2/5} b^{2/5}\right )-x^2} \, dx,x,2 \sqrt [5]{-1} \sqrt [5]{b}+2 \sqrt [5]{a} \tan \left (\frac {x}{2}\right )\right )}{5 a^{4/5}}-\frac {4 \operatorname {Subst}\left (\int \frac {1}{-4 \left (a^{2/5}+(-1)^{3/5} b^{2/5}\right )-x^2} \, dx,x,-2 (-1)^{4/5} \sqrt [5]{b}+2 \sqrt [5]{a} \tan \left (\frac {x}{2}\right )\right )}{5 a^{4/5}}-\frac {4 \operatorname {Subst}\left (\int \frac {1}{-4 \left (a^{2/5}-(-1)^{4/5} b^{2/5}\right )-x^2} \, dx,x,-2 (-1)^{2/5} \sqrt [5]{b}+2 \sqrt [5]{a} \tan \left (\frac {x}{2}\right )\right )}{5 a^{4/5}}\\ &=-\frac {2 \tan ^{-1}\left (\frac {\sqrt [5]{b}-\sqrt [5]{a} \tan \left (\frac {x}{2}\right )}{\sqrt {a^{2/5}-b^{2/5}}}\right )}{5 a^{4/5} \sqrt {a^{2/5}-b^{2/5}}}-\frac {2 \tan ^{-1}\left (\frac {(-1)^{2/5} \sqrt [5]{b}-\sqrt [5]{a} \tan \left (\frac {x}{2}\right )}{\sqrt {a^{2/5}-(-1)^{4/5} b^{2/5}}}\right )}{5 a^{4/5} \sqrt {a^{2/5}-(-1)^{4/5} b^{2/5}}}-\frac {2 \tan ^{-1}\left (\frac {(-1)^{4/5} \sqrt [5]{b}-\sqrt [5]{a} \tan \left (\frac {x}{2}\right )}{\sqrt {a^{2/5}+(-1)^{3/5} b^{2/5}}}\right )}{5 a^{4/5} \sqrt {a^{2/5}+(-1)^{3/5} b^{2/5}}}+\frac {2 \tan ^{-1}\left (\frac {\sqrt [5]{-1} \sqrt [5]{b}+\sqrt [5]{a} \tan \left (\frac {x}{2}\right )}{\sqrt {a^{2/5}-(-1)^{2/5} b^{2/5}}}\right )}{5 a^{4/5} \sqrt {a^{2/5}-(-1)^{2/5} b^{2/5}}}+\frac {2 \tan ^{-1}\left (\frac {(-1)^{3/5} \sqrt [5]{b}+\sqrt [5]{a} \tan \left (\frac {x}{2}\right )}{\sqrt {a^{2/5}+\sqrt [5]{-1} b^{2/5}}}\right )}{5 a^{4/5} \sqrt {a^{2/5}+\sqrt [5]{-1} b^{2/5}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.19, size = 149, normalized size = 0.39 \[ -\frac {8}{5} i \text {RootSum}\left [i \text {$\#$1}^{10} b-5 i \text {$\#$1}^8 b+10 i \text {$\#$1}^6 b+32 \text {$\#$1}^5 a-10 i \text {$\#$1}^4 b+5 i \text {$\#$1}^2 b-i b\& ,\frac {2 \text {$\#$1}^3 \tan ^{-1}\left (\frac {\sin (x)}{\cos (x)-\text {$\#$1}}\right )-i \text {$\#$1}^3 \log \left (\text {$\#$1}^2-2 \text {$\#$1} \cos (x)+1\right )}{\text {$\#$1}^8 b-4 \text {$\#$1}^6 b+6 \text {$\#$1}^4 b-16 i \text {$\#$1}^3 a-4 \text {$\#$1}^2 b+b}\& \right ] \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: RuntimeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int -\frac {1}{b \sin \relax (x)^{5} - a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.25, size = 109, normalized size = 0.29 \[ \frac {\left (\munderset {\textit {\_R} =\RootOf \left (a \,\textit {\_Z}^{10}+5 a \,\textit {\_Z}^{8}+10 a \,\textit {\_Z}^{6}-32 b \,\textit {\_Z}^{5}+10 a \,\textit {\_Z}^{4}+5 a \,\textit {\_Z}^{2}+a \right )}{\sum }\frac {\left (\textit {\_R}^{8}+4 \textit {\_R}^{6}+6 \textit {\_R}^{4}+4 \textit {\_R}^{2}+1\right ) \ln \left (\tan \left (\frac {x}{2}\right )-\textit {\_R} \right )}{\textit {\_R}^{9} a +4 \textit {\_R}^{7} a +6 \textit {\_R}^{5} a -16 \textit {\_R}^{4} b +4 \textit {\_R}^{3} a +\textit {\_R} a}\right )}{5} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -\int \frac {1}{b \sin \relax (x)^{5} - a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 20.14, size = 1515, normalized size = 4.00 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{a - b \sin ^{5}{\relax (x )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________